﻿@model IEnumerable<WindMill.Models.Estoque.Classe>

@{
    ViewBag.Title = "Classes";
    if (ViewData["Lookup"] == null)
    {
        Layout = "~/Views/Shared/_Layout.cshtml";
    }
    else
    {
        Layout = "~/Views/Shared/_BlankLayout.cshtml";
    }    
}

@section scripts{
    <script>
        $(document).ready(function () {
            var ot = $('#search-list .datatables').configTables(function () {
                 $('#search-list .datatables tbody tr').dblclick(function (e) {
                    var data = ot.fnGetData(this);
                    var valor = "CodClasse";
                    var id = (data[valor]);
                     window.location = "@Url.Action("Edit")/" + id;
                 });
            });
        });

    </script>
}

@section options{
    <div class="options">
                <div class="btn-toolbar">
                    <button class="btn btn-default" id="daterangepicker2">
                        <i class="icon-file"></i> 
                        <span class="hidden-xs hidden-sm"> Cadastrar Novo</span>
                    </button>
                    <div class="btn-group hidden-xs">
                        <a href='#' class="btn btn-muted dropdown-toggle" data-toggle='dropdown'><i class="icon-cloud-download"></i><span class="hidden-xs hidden-sm hidden-md"> Relatórios</span> <span class="caret"></span></a>
                        <ul class="dropdown-menu">
                            <li><a href="#">Text File (*.txt)</a></li>
                            <li><a href="#">Excel File (*.xlsx)</a></li>
                            <li><a href="#">PDF File (*.pdf)</a></li>
                        </ul>
                    </div>
                    <div class="btn-group hidden-xs">
                        <a href='#' class="btn btn-muted dropdown-toggle" data-toggle='dropdown'><i class="icon-cloud-download"></i><span class="hidden-xs hidden-sm hidden-md"> Exportar</span> <span class="caret"></span></a>
                        <ul class="dropdown-menu">
                            <li><a href="#">Text File (*.txt)</a></li>
                            <li><a href="#">Excel File (*.xlsx)</a></li>
                            <li><a href="#">PDF File (*.pdf)</a></li>
                        </ul>
                    </div>
                    <a href="#" class="btn btn-muted hidden-xs"><i class="icon-cog"></i></a>
                </div>
    </div>
}

<div class="container" id="search-list">
            <div class="row">
              <div class="col-md-12">
                    <div class="panel panel-sky">
                        <div class="panel-heading">
                            <h4></h4>
                            <div class="options">   
                                <a href="javascript:;"><i class="icon-cog"></i></a>
                                <a href="javascript:;"><i class="icon-wrench"></i></a>
								<a href="@Url.Action("Create")"><i class="icon-plus"></i></a>
                            </div>
                        </div>
                        <div class="panel-body collapse in">

                        <table cellpadding="0" cellspacing="0" border="0" source="@Url.Action("Search")" class="table table-striped table-bordered datatables">
                        <thead>
                            <tr>
                                <th column="DescClasse">                                
                                    Descrição
                                </th>                           
                                <th column="NumClasse" style="width: 110px;">
                                    Nr. Classe
                                </th>
                                <th column="NumSubclasse" style="width: 130px;">
                                    Nr. Subclasse
                                </th>
                                <th column="DescIndTipo">
                                    Tipo
                                </th>
                                <th column="CodContaContabil" style="width: 150px;">
                                    Conta Contabil
                                </th>                                                 
                            </tr>
    </thead>
</table>

</div>
</div>
</div>
</div>
	
</div> <!-- container -->
